﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using YXQ.Dao;
using YXQ.IService;
using YXQ.Dao.ViewModel;
namespace YXQ.Service
{

    public class PayService : IPayService
    {


        PayDao dao = new PayDao();


        #region IPayService 成员

        public List<Y_Pay> GetList(int startIndex, int maxRow, out int recordcount)
        {

            return dao.GetList(startIndex, maxRow, out recordcount);

        }


        #endregion


        #region IPayService 成员

        public int Save(PayModel obj)
        {

            return dao.Save(obj);

        }


        #endregion


        #region IPayService 成员

        public PayModel GetOneById(int id)
        {

            return dao.GetOneById(id);

        }


        #endregion

        #region IPayService 成员
        public int DelById(int id)
        {

            return dao.DelById(id);

        }


        #endregion



        public List<PayModel> GetModel(string remark,string dtstart, string dtend,int proid,int mtype,int ptype, int startIndex, int maxrow, out int record)
        {
            return dao.GetModel(remark, dtstart, dtend, proid, mtype, ptype, startIndex, maxrow, out record);
        }
    }

}

